﻿using System.Collections.Generic;

namespace Iptv.MediaReporter.Model
{
    /// <summary>
    /// 内容建档上报
    /// </summary>
    internal class ReportRecordData : ReportBaseModel
    {
        public List<MediaRecordInfo> dataList { get; set; } = new List<MediaRecordInfo>();
    }

    /// <summary>
    /// 建档媒体信息
    /// </summary>
    internal class MediaRecordInfo
    {
        /// <summary>
        /// 统一内容编号 MRS的ID
        /// </summary>
        public string localId { get; set; }
        /// <summary>
        /// 建档日期
        /// </summary>
        public string recordDateTime { get; set; }
        /// <summary>
        /// 剧头ID  使用Code
        /// </summary>
        public string collectionId { get; set; }
        /// <summary>
        /// 剧头名称
        /// </summary>
        public string collectionName { get; set; }
        /// <summary>
        /// 总集数
        /// </summary>
        public string collectionTotal { get; set; }
        /// <summary>
        /// 当前集号
        /// </summary>
        public string collectionNumber { get; set; }
        /// <summary>
        /// 资源类型 1：UGC 2：PGC  默认为2
        /// </summary>
        public int contentType { get; set; } = 2;
        /// <summary>
        /// 发行备案号
        /// </summary>
        public string licenseNum { get; set; }
        /// <summary>
        /// 短视频脱敏账号
        /// </summary>
        public string userId { get; set; } = "";
        /// <summary>
        /// 短视频发布时IP所属地
        /// </summary>
        public string userAddress { get; set; } = "";
        /// <summary>
        /// 出品者（当存在多个值时，以#分割）
        /// </summary>
        public string producer { get; set; }
        /// <summary>
        /// 发行年份，统一为“yyyy”格式字符串
        /// </summary>
        public string releaseYear { get; set; }
        /// <summary>
        /// 发行时间，（yyyy-MM-dd）
        /// </summary>
        public string releaseDate { get; set; }
        /// <summary>
        /// 是否纯音频（ 0：否，1：是）
        /// </summary>
        public int isAudio { get; set; } = 0;
    }
}

